#pragma once
#include "precompiled.h"
#include "Core.h"

class Game
{
public:
	Game(void);
	~Game(void);
	
	void loadExtensions();
	void initialize();
	void cleanup();


	void LoadWorld();

	void run();

private:
	void load_defaultAssets();
	void Dbg_setup_fbo();
	void Dbg_render_normal();
	void Dbg_render_with_fbo();
	void Dbg_display_fsq();

	void checkFBOCompleteleness();
	void showFPS();
	
	bool running;

	double t0,tLast,tElapsed;
	int frames;
	char titlestring[200];

	// DBG and temporary...
	GLuint fbo[1], depth_rb[1], colorbo[1];
	Texture tCB;
	glm::mat4 *projview;
};

